Make synchronized_configure work for child windows (used by in-process plugs) and...
authorAlexander Larsson <alexl@redhat.com>
Thu, 4 Dec 2008 09:04:05 +0000 (10:04 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:14:05 +0000 (10:14 +0200)
gdk/x11/gdkwindow-x11.c

index ed9a854a6ac843b8eb564e05a6a02abf18df0eb9..dad4abc0351bb78cf1beaa8a801d1577ec2e510c 100644 (file)
@@ -5758,13 +5758,17 @@ gdk_window_enable_synchronized_configure (GdkWindow *window)
   GdkWindowObject *private = (GdkWindowObject *)window;
   GdkWindowImplX11 *impl;
 
-  if (!WINDOW_IS_TOPLEVEL (window))
+  if (!GDK_IS_WINDOW_IMPL_X11 (private->impl))
     return;
-
+  
   impl = GDK_WINDOW_IMPL_X11 (private->impl);
          
   if (!impl->use_synchronized_configure)
     {
+      /* This basically means you want to do fancy X specific stuff, so
+        ensure we have a native window */
+      gdk_window_set_has_native (window, TRUE);
+  
       impl->use_synchronized_configure = TRUE;
       ensure_sync_counter (window);
     }